<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <style type="text/css" media="screen">@import url( style2.css );</style>
  <title>TeamDocs</title>
</head>

<body>

<div style="text-align: left;"><!-- Banner code -->
<table id="banner" width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="33%" class="padding"><img src="images/logo.jpg" alt="TeamDocs" /></td>
    <td colspan="2" align="right" class="padding">
      <h2>Organization | Repository Name</h2>
    </td>
  </tr>
  <tr>
    <td width="33%" class="padding">Logged in as: Firstname Lastname</td>
    <td width="34%" class="padding">
      <div align="center">
      <p>
        <a wicket:id="linkToIndexPage" href="Index.html">Index</a> |
        <a href="adminview.jsp">Admin</a> | 
        <a wicket:id="linkToDashboard" href="dashboard.html">Dashboard</a> |
        <a wicket:id="linkToExplorer" href="explorer.html">Repository</a> | 
        <a href="#">Profile</a> | 
        <a href="logout.jsp">Logout</a></p>
      </div>
    </td>
    <td width="33%" align="right" class="padding">
      <form action="search.do" name="search" method="post">
        <input type="text" name="search_terms" style="width: 150px; " /> 
        <input type="submit" name="action" value="search" />
      </form>
    </td>
  </tr>
</table>
<br />
<table id="content" width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="80%" valign="top" class="padding" style="border-right: 1px solid #000;">
    
    <!-- Directory Section -->
    <h2><img src="images/big/folder2.png" width="48" height="48" alt="folder2" />Directory Name</h2>
    <p>Actions: <a href="explorer.jsp?action=new_directory">Create a new Directory</a> | <a
      href="explorer.jsp?action=rename_directory">Rename "DirectoryName"</a></p>

    <span wicket:id="feedback">Feedback Panel - feedback messages go here</span>
    <!-- Add a directory -->
    <!-- 
    <p class="error">Error: Directory already exists.</p>
    <p class="error">Error: Must give directory a non-empty name.</p>
    <p class="error">Error: A Directory name can only contain letters, numbers, or underscore.</p>
     -->

    <form name="addDirectory" action="directory.do" method="post">Directory Name: <input type="text"
      name="directory" value="" style="width: 200px; " maxlength="45" /> <input type="hidden" name="page"
      value="explorer.jsp" /> <input type="submit" value="Create" name="action" /> <input type="submit" value="Cancel"
      name="action" /></form>

    <!-- 
    <p class="success">Successfully added Directory to Parent Directory</p>
    <p class="success">Successfully renamed PreviousDirectoryName to NewDirectoryName</p>
    
    <p class="error">Error: Cannot rename DirectoryName to NewDirectoryName, because it already exists</p>
    <p class="error">Error: Must rename a directory to a non-empty name.</p>
    -->
    <form action="directory.do" name="renamedir" method="post"><label>Rename the current directory to: </label> <input
      type="text" name="new_name_dir" size="40" value="DirectoryName" /> <input type="submit" value="Rename Directory"
      name="action" /> <input type="submit" value="Cancel" name="action" /> <input type="hidden" name="page"
      value="explorer.jsp" /></form>
    
    <p><img src="images/little/up.png" width="16" height="16" alt="folder" /> <a
      href="repository.do?action=explore&id=parentID">Move up one directory...</a></p>

    <!-- Directories -->
    <table id="table1" cellspacing="0" cellpadding="0" width="100%" border="0">
      <tr>
        <td class="table_heading" width="551">Directory Name</td>
      </tr>
      <tr>
        <td width="551">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="images/little/folder.png" width="16" height="16"
          alt="folder" /> <a href="repository.do?action=explore&id=ID">DirectoryName</a></td>
      </tr>
    </table>
    <p>No directories exist in the repository yet</p>


    <!-- Files -->
    <h2>Files</h2>

    <p>Actions: <a href="explorer.jsp?action=add_document">Add a new document</a></p>
    
    <!-- Add a file -->
    <!-- 
    <p class="error">Document size must be greater than 0.</p>
    <p class="error">Document name must contain letters, digits or any of '-','_' or '.'.</p>
    <p class="error">Error: Document already exists in directory.</p>
    -->
    
    <form name="addDocument" action="document.do" method="post" enctype="multipart/form-data">
    <table border="0" cellpadding="2">
      <tbody>
        <tr>
          <td>Document:</td>
          <td><input type="file" name="document" value="" style="width: 200px;" /></td>
        </tr>
        <tr>
          <td>Keywords:</td>
          <td><input type="text" name="keywords" value="" style="width: 300px;" /></td>
        </tr>
        <tr>
          <td valign="top">Summary:</td>
          <td><textarea name="summary" rows="4" cols="40"></textarea></td>
        </tr>
        <tr>
          <td>Version:</td>
          <td><input type="text" name="version" value="0.1" style="width: 50px;" /></td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td><input type="hidden" name="page" value="explorer.jsp" /> <input type="submit" value="Add"
            name="action" /> <input type="submit" value="Cancel" name="action" /></td>
        </tr>
      </tbody>
    </table>
    </form>
    
    <!-- 
    <p class="success">Successfully added Document to Directory</p>
    -->

    <!-- Display Documents -->
    <table id="table3" cellspacing="0" cellpadding="0" width="100%" border="0">
      <tr>
        <td class="table_heading" width="60">Status</td>
        <td class="table_heading">Document Name</td>
      </tr>
      <tr>
        <td width="60"><img alt="new document" src="images/new.gif" /></td>
        <td><img src="images/little/doc.png" width="16" height="16" alt="doc" /> <a
          href="document.do?action=read&id=ID">Filename</a> <span class="small"><em>(<a
          href="document.do?action=more_info&id=ID">more info</a>)</em></span></td>
      </tr>
    </table>
    <p>No Documents exist in this directory</p>

    </td>
  </tr>
</table>
</div>
</body>
</html>
